<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <!-- <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>名称</span>
            <input type="text" ms-duplex="@search_data.name" placeholder="">
        </div>
        <div class="search-list">
            <span>状态</span>
            <select id="is_effect">
                <option value="2" {if $data.is_effect eq 2}selected="selected"{/if} >全部</option>
                <option value="1" {if $data.is_effect eq 1}selected="selected"{/if} >有效</option>
                <option value="0" {if $data.is_effect eq 0}selected="selected"{/if} >无效</option>
            </select>
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div> -->
    <div class="ajax-block" ms-important="vm-edit">
        <table class="uc-table" id="uc-table">
            <thead>
                <tr>
                    <th>
                        <input type="checkbox" ms-duplex-checked="@hasCheckAll" ms-click="@checkAll">
                    </th>
                    <th>编号</th>
                    <th>名称</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach from="$data.list" item="item"}
                <tr>
                    <td><input type="checkbox" ms-duplex="@checkItem" value="{$item.id}" class="single_check"></td>
                    <td>{$item.id}</td>
                    <td>{$item.name}</td>
                    <td>{if $item.is_effect eq 1}有效{else}无效{/if}</td>
                    <td>
                        <a href='{url r="user_two#role_edit" p="id=$item.id"}' class="mr-10">编辑</a>
                        <a href="javascript:void(0)" ms-click="@delRole({$item.id})">删除</a>
                    </td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan=5>
                        <span>暂无数据</span>
                    </td> 
                </tr>
                {/foreach}
                <tr>
                    <td colspan=5 style="text-align:left;">
                        <a href='javascript:void(0)' class="btn btn-default mr-20" ms-click="@checkLicense">新增</a>
                        <!-- {if $data.list}
                        <a href="javascript:void(0)" class="btn btn-default" ms-click="@delChooseRole">删除</a>
                        {/if}  -->
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
